import request from '@/utils/request'

export function listSysMsg (query) {
  return request({
    url: '/basic-api/system/sysMsg/msgList',
    method: 'get',
    params: query
  })
}

export function msgIsRead (id) {
  return request({
    url: '/basic-api/system/sysMsg/isRead/' + id,
    method: 'put',
  })
}
export function msgBathRead (msgIds) {
  return request({
    url: '/basic-api/system/sysMsg/bathRead/' + msgIds,
    method: 'put',
  })
}

export function delSysMsg (id) {
  return request({
    url: '/basic-api/system/sysMsg/remove/' + id,
    method: 'delete'
  })
}

export function bathDelSysMsg (ids) {
  return request({
    url: '/basic-api/system/sysMsg/bathRemove/' + ids,
    method: 'delete'
  })
}

